<?PHP
include '../m/constants.php';
global $conf;
$where[0][0]='media';
$where[0][1]=$_POST['id'];
$where[0][2]='=';
//$dataz = getlistfiltered2('content',NULL,NULL,$where,NULL,NULL,FALSE);
//$file_name="../".$conf->photo_dir.$dataz[0]['image'];
//$thumb_name="../".$conf->thumb_dir.$dataz[0]['thumb'];
unlink($file_name);
unlink($thumb_name);
deletesql("media","id",$_POST['id']);
//$schedule= new schedule();
//$schedule->appointment_id = $_POST['id'];
//$schedule->appointment_delete();


?>
